import { request } from '../request';

export function getCaptcha(params: any) {
	return request({
		url: '/admin/base/open/captcha',
		params
	});
}

export function login(data: any) {
	return request({
		url: '/admin/base/open/login',
		data,
		method: 'POST'
	});
}

export function refreshToken(data: any) {
	return request({
		url: '/admin/base/open/refreshToken',
		data,
		method: 'POST'
	});
}
